package com.dianping.cat.consumer.heartbeat.model.entity;

import com.dianping.cat.consumer.heartbeat.model.BaseEntity;
import com.dianping.cat.consumer.heartbeat.model.IVisitor;





public class Detail
  extends BaseEntity<Detail>
{
  private String m_id;
  private double m_value;

  public Detail() {}

/* 18 */   public Detail(String id) { this.m_id = id; }




/* 23 */   public void accept(IVisitor visitor) { visitor.visitDetail(this); }



  public boolean equals(Object obj) {
/* 28 */     if (obj instanceof Detail) {
/* 29 */       Detail _o = (Detail)obj;

/* 31 */       if (!equals(getId(), _o.getId())) {
/* 32 */         return false;
      }

/* 35 */       return true;
    }

/* 38 */     return false;
  }


/* 42 */   public String getId() { return this.m_id; }



/* 46 */   public double getValue() { return this.m_value; }







  public void mergeAttributes(Detail other) {
/* 60 */     assertAttributeEquals(other, "detail", "id", this.m_id, other.getId());

/* 62 */     this.m_value = other.getValue();
  }

  public Detail setId(String id) {
/* 66 */     this.m_id = id;
/* 67 */     return this;
  }

  public Detail setValue(double value) {
/* 71 */     this.m_value = value;
/* 72 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/heartbeat/model/entity/Detail.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */